package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Txt;
import com.ruoyi.system.mapper.TxtMapper;
import com.ruoyi.system.service.TxtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TxtServiceImpl implements TxtService {
    @Autowired
    private TxtMapper txtMapper;
    @Override
    public int add(Txt txt) {
 return txtMapper.add(txt);
    }

    @Override
    public List<Txt> selectUserid(int userid)
    {
        return txtMapper.selectUserid(userid);
    }

    @Override
    public Txt selectId(int id) {
        return txtMapper.selectId(id);
    }

    @Override
    public List<Txt> selectByclassify(int userid, int classify) {

        return txtMapper.selectByclassify(userid,classify);
    }
    @Override
    public int delete(int id) {

        return txtMapper.delete(id);
    }

    @Override
    public List<Txt> selectName(String title) {
        return txtMapper.selectByname(title);
    }

    @Override
    public int updateTxt(Txt txt) {

        return txtMapper.updateTxt(txt);
    }

    @Override
    public List<Txt> selectall() {

        return txtMapper.selectall();
    }

    @Override
    public int look(Txt txt) {
        return txtMapper.look(txt);
    }
}
